package com.ruoyi.system.config;

import com.ruoyi.system.service.SnowFlake;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SnowFlakeConfiguration {

    @Bean
    @ConditionalOnMissingBean(SnowFlake.class)
    public SnowFlake snowFlake(){
        return new SnowFlake() {};
    }

}
